package edu.sctu.practice.class02.liqiqi.assgin03.title1;

/**
 * Created by uw on 2015/10/22.
 */
public class Rectangle extends GeometricObject {
    public double values;
    public double area1;
    public double area2;
    public Rectangle(double values) {
        super(values);
        this.values=values;
    }

    @Override
    public double findArea() {
        area1=values*values;
        return area1;
    }

    @Override
    public double findPerimeter() {
        area2=4*values;
        return area2;
    }
}
